package com.sc.auction.auction.feign;

import com.sc.auction.common.util.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
@Service
@FeignClient(name = "auction-order")
public interface OrderFeignService {
    @PostMapping(value = "/order/order/insertOrder")
    public R insertOrder(@RequestParam("uid") Integer uid, @RequestParam("money") BigDecimal money, @RequestParam("auctionid")Integer auctionid);

    @GetMapping(value = "/order/order/getOrderByAuctionId")
    @ApiOperation("根据Auctionid查询订单")
    public R getOrderByAuctionId(@RequestParam("id")Integer id);
}
